";
$pt = mysql_fetch_array(mysql_query("SELECT tid FROM ibwf_favtopic WHERE id='".$uid."'"));
if($tid==$pt[0]) { echo ""; } else {
$vp = mysql_fetch_array(mysql_query("SELECT tid FROM ibwf_favtopic WHERE uid='".$uid."'"));
if($tid==$vp[0])
{
echo " Already Added in your favourite topic list!!
";
}else{
$res = mysql_query("INSERT INTO ibwf_favtopic SET tid='".$tid."', uid='".$uid."', dtpost='".$crdate."'");
}
if($res)
{
echo "
This topic Added in your Favourite list successfully
";
}else{
echo "
Error
";
}
}
$tinfo = mysql_fetch_array(mysql_query("SELECT name, text, authorid, crdate, views, fid, pollid from ibwf_topics WHERE id='".$tid."'"));
$tnm = htmlspecialchars($tinfo[0]);
echo "Back to $tnm
";
echo "
Home";
echo "© Mukt@r
";
echo "
";
$pt = mysql_fetch_array(mysql_query("SELECT tid FROM ibwf_favtopic WHERE id='".$uid."'"));
if($tid==$pt[0]) { echo ""; } else {
$vp = mysql_fetch_array(mysql_query("SELECT tid FROM ibwf_favtopic WHERE uid='".$uid."'"));
if($tid==$vp[0])
{
$res = mysql_query("DELETE FROM ibwf_favtopic WHERE tid='".$tid."' AND uid='".$uid."'");
}else{
echo " Already Deleted from your favourite topic list!!
";
}
if($res)
{
echo "
This topic Deleted From your Favourite topic list successfully
";
}else{
echo "
Error
";
}
}
$tinfo = mysql_fetch_array(mysql_query("SELECT name, text, authorid, crdate, views, fid, pollid from ibwf_topics WHERE id='".$tid."'"));
$tnm = htmlspecialchars($tinfo[0]);
echo "Back to $tnm
";
echo "
Home";
echo "© Mukt@r
";
echo "
";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$tid = gettid_pid($item[1]);
$tname = gettname($tid);
$tinfo = mysql_fetch_array(mysql_query("SELECT name, text, authorid, crdate, views, fid, pollid from ibwf_topics WHERE id='".$item[1]."'"));
$tnm = htmlspecialchars($tinfo[0]);
echo "";
$lnk = "[x]
";
echo "".htmlspecialchars($tnm)." ".date("d m y-H:i:s",$item[2])." $lnk
";
}
}
echo "
";
if($page>1)
{
$ppage = $page-1;
echo "«PREV ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "Next»";
}
echo "
$page/$num_pages
";
if($num_pages>2)
{
$rets = "Jump to page";
$rets .= "
";
$unick = getnick_uid($who);
echo "";
echo "$unick's Profile
";
echo "
";
echo "© Mukt@r
";
echo "Home";
echo "